<template>
	<view>
		<image src="../../static/images/icon/fanhui.png" class="top-dom-navback"  @tap="navback" :style="{'top':statusBarHeight+'rpx'}">
		<!-- <text class="top-dom-navback iconfont icon-guanbi" @tap="navback" ></text> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight:0
			}
		},
		methods: {
			
		},
		mounted() {
			let res = uni.getSystemInfoSync();
			//console.log(res.statusBarHeight)
			let menu = uni.getMenuButtonBoundingClientRect();
			/* console.log(menu)
			var statusBarHeight = (menu.top - res.statusBarHeight) * 2 + menu.height + res.statusBarHeight;
			if (res.model.indexOf('iPhone') > -1) {
				statusBarHeight += 4
			} */
			var statusBarHeight = res.statusBarHeight + menu.top;
			if (res.model.indexOf('iPhone') > -1) {
				statusBarHeight += 4
			} 
			this.statusBarHeight = statusBarHeight;
			//console.log(statusBarHeight)
		}
	}
</script>

<style lang="scss">
.top-dom-navback{
	position: absolute;
	left: 20rpx;
	z-index: 101;
	width: 60rpx;
	height: 60rpx;
}
</style>
